package org.zsl.aop.app;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.zsl.aop.dao.TeacherDAO;
import org.zsl.aop.dao.TeacherDAO2;

public class Client4 {

    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("classpath:aop.xml");

        TeacherDAO2 teacherDAO2 = (TeacherDAO2) context.getBean("teacherDao2");

        teacherDAO2.update();
    }
}
